package com.qianli.cashmama.trade.dao.impl;

import com.fqgj.common.base.AbstractBaseMapper;
import com.qianli.cashmama.trade.dao.TBillAccountingDao;
import com.qianli.cashmama.trade.entity.TBillAccountingEntity;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * User: Karl
 * Date: 2019-11-20
 * Time: 23:47:01.211
 */

@Repository
public class TBillAccountingDaoImpl extends AbstractBaseMapper<TBillAccountingEntity> implements TBillAccountingDao {

    @Override
    public List<TBillAccountingEntity> selectByBillNo(String billNo) {
        Map<String, Object> params = new HashMap<>();
        params.put("billNo", billNo);
        return getSqlSession().selectList(getStatement("selectByBillNo"), params);
    }

    @Override
    public TBillAccountingEntity selectByPayBillNo(String payBizNo) {
        Map<String, Object> params = new HashMap<>();
        params.put("payBizNo", payBizNo);
        return getSqlSession().selectOne(getStatement("selectByPayBillNo"), params);
    }
}
